/*
 * @Description: 积分平台对接
 * @Date: 2022-12-09 14:00:11
 * @Author: lizhiqiang
 */
import { IntegralPlatform } from "@/types/api";
import { get, post } from "@/utils/request";
/**
 * 获取积分平台列表
 */
export const GetIntegralPlatformList = ( params: IntegralPlatform ) => {
    return post( "/integral-service/integral/integralplatform/list", params )
}
/**
 * 获取积分平台详情
 * @param pkAccountDc 
 * @returns 
 */
export const GetIntegralPlatform = ( id: string ) => {
    return get( `/integral-service/integral/integralplatform/info/${ id }` )
}
/**
 * 保存积分平台
 * @param params 
 * @returns 
 */
export const SaveIntegralPlatform = ( params: IntegralPlatform ) => {
    return post( "/integral-service/integral/integralplatform/save", params )
}
/**
 * 修改积分平台
 * @param params 
 * @returns 
 */
export const UpdateIntegralPlatform = ( params: IntegralPlatform ) => {
    return post( "/integral-service/integral/integralplatform/update", params )
}
/**
 * 删除积分平台
 * @param params 
 * @returns 
 */
export const DeleteIntegralPlatform = ( params: Array<string> ) => {
    return post( "/integral-service/integral/integralplatform/deleteBatch",params)
}